package com.zzb.dao;

import com.zzb.entity.MessageEntity;
import com.zzb.entity.UserEntity;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface UserDao extends BaseDao<UserEntity>{

    UserEntity findByUsernameAndPassword(UserEntity userEntity);

    List<String> findPermissionByUserId(UserEntity userEntity);

    int addMessage(MessageEntity messageEntity);
}
